<template>
	<div id="app">
		<HelloWorld></HelloWorld>
	</div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'app',
  components: {
    HelloWorld
  },
  data(){
	  return{
		  className: ['icon icon-renwu-01', 'icon icon-jinggao']
	  }
  },
  created() {
  	
  },
  methods: {
	  live2dItemClick(index) {
		  //第一个icon被点击时触发
		  if (index === 0) {
			  this.$refs.aaa.loadOtherModel();
		  }
		  if(index === 1){
			  this.$refs.aaa.loadRandModel();
		  }
	  },
	  live2dItemEnter(index) {
		  // this.$refs.aaa.loadOtherModel();
		  this.$refs.aaa.showMessage('我是live2d', 2000, 1000);
	  }
  }
}
</script>

<style>
	
@font-face {
  font-family: 'iconfont';  /* project id 2429484 */
  src: url('//at.alicdn.com/t/font_2429484_inj7bp1im6b.eot');
  src: url('//at.alicdn.com/t/font_2429484_inj7bp1im6b.eot?#iefix') format('embedded-opentype'),
  url('//at.alicdn.com/t/font_2429484_inj7bp1im6b.woff2') format('woff2'),
  url('//at.alicdn.com/t/font_2429484_inj7bp1im6b.woff') format('woff'),
  url('//at.alicdn.com/t/font_2429484_inj7bp1im6b.ttf') format('truetype'),
  url('//at.alicdn.com/t/font_2429484_inj7bp1im6b.svg#iconfont') format('svg');
}	

.icon{
	font-family: iconfont;
}
</style>
